import { Request } from "./request";
const apis = {
    get_pros: (params) => {
        return Request.post("/product/ProductFinancialList", params)
    },
    // 获取用户
    get_user: (params) => {
        return Request.post("/admin/ClientManagementList", params)
    },
    // 获取合同信息
    get_contract: (params) => {
        return Request.post("/product/GetContrantNo", params)
    },
    // 上传图片
    imgUploadFile: (params) => {
        const formData = new FormData(); // 下面有备注
        formData.append('file', params);
        return Request.post("/file/uploadImgFromUserApi", formData, {
            headers: {
                // 注意修改请求头file格式
                'Content-Type': 'multipart/form-data',
            },
        })
    }
}
export default apis

// https://gitee.com/mobile-crm/soph_crm.git